import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from '@/store';

// 引入主题
import '@/assets/styles/theme/index.scss'

// 项目公共样式
import '@/assets/styles/font.scss';
import '@/assets/styles/index.scss';
import '@/assets/styles/scrollbar.scss';
import '@/assets/styles/btn.scss';
import '@/assets/styles/rewrite.scss';

// 阿里云图标
import '@/assets/font/font-icon/iconfont.css';
import '@/assets/font/font-icon/iconfont.js';

//引入指令
import directives from '@/directive/waves';

// 国际化vue-i18n
import { createI18n } from 'vue-i18n'
import i18nLanguages from '@/assets/language/index';
const i18n = createI18n({
  locale: 'zh',
  messages: i18nLanguages
})

const app = createApp(App);

app.use(directives).use(i18n);
app.use(router).use(store).mount('#app');
